package 数组和链表;

import 抽象数据类型.ListNode;

/**
 * @author: yangwk
 * @date: 2023/4/4
 * @description:
 **/
public class 打印链表 {
    public static  void printListNode(ListNode head) {
        ListNode temp = head;
        while (temp != null) {
            System.out.print(temp.val + "\t");
            temp = temp.next;
        }
    }
}
